package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 * Created by sss on 2016/8/11.
 */
public enum IronhideSysExceptionEnum implements DefaultSysExceptionInterface{
    /****IRONHIDE**********IRONHIDE********************IRONHIDE**********IRONHIDE****/
    IMG_FILE_TYPE_INVALID(1800,"上传图片格式错误", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    IMG_CACHE_TIMEOUT(1801,"缓存图片过期", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    IMG_URI_OPT(1802,"图片保存地址没有配置:", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    HOTELS_NOT_EXIT(1803,"酒店未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    GROUP_AREA_EXIT(1804,"集团城市已存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    HOTEL_CODE_EXIT(1805,"酒店代码已存在", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    GROUP_NOT_EXIT(1806,"集团未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.IRONHIDE),
    ;

    private IronhideSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
